#include "StartMenu.h";

StartMenu::StartMenu(SdkTrayManager *mTrayMgr)
{
	this->mTrayMgr = mTrayMgr;

	menuItems.push_back("Edit water parameters");
	menuItems.push_back("Set weather");
	menuItems.push_back("Edit scene");
	menuItems.push_back("Test events");

	mStartMenu = mTrayMgr->createLongSelectMenu(OgreBites::TL_TOPLEFT, "TStartMenu", "Start: ", 350, 200, 4, menuItems);
}

//------------------------------------------------------------------------------------------

StartMenu::~StartMenu(void)
{
}

//-------------------------------------------------------------------------------------------

void StartMenu::show(void)
{
	mTrayMgr->moveWidgetToTray(mStartMenu,OgreBites::TL_TOPLEFT);
	mStartMenu->show();
}

//-------------------------------------------------------------------------------------------

void StartMenu::hide(void)
{
    mTrayMgr->removeWidgetFromTray(mStartMenu);
	mStartMenu->hide();
}

//-------------------------------------------------------------------------------------------

StartMenu::eStartMenuSelection StartMenu::getSelection(void)
{
	return (eStartMenuSelection)mStartMenu->getSelectionIndex();
}

//-------------------------------------------------------------------------------------------